# 路由
from apps import LoginHandler, CompanyHandler, UserHandler, CompanyDataHandler, UserDoLogHandler, UploadFileHandler

handlers = [
    (r"/login", LoginHandler.Login),
    (r"/logout", LoginHandler.LogOut),

    (r"/user/register", UserHandler.RegisterHandler),
    (r"/user/send_p_email", UserHandler.ForgotPasswordHandler),
    (r"/user/information", UserHandler.UserHandler),
    (r"/user/update_info", UserHandler.UserHandler),
    (r"/user/update_password", UserHandler.UserHandler),
    (r"/user/do_log", UserDoLogHandler.UserDoLogHandler),
    (r"/user/unsubscribe", UserHandler.UserUnsubscribeHandler),
    (r"/user/change_email", UserHandler.ChangeEmailHandler),

    (r"/company/list", CompanyHandler.CompanyHandler),
    (r"/company/add_company", CompanyHandler.CompanyHandler),
    (r"/company/update_company_info", CompanyHandler.CompanyHandler),
    (r"/company/del_company", CompanyHandler.CompanyHandler),
    (r"/company/data_list", CompanyDataHandler.CompanyDataHandler),
    (r"/company/add_data", CompanyDataHandler.CompanyDataHandler),
    (r"/company/update_data", CompanyDataHandler.CompanyDataHandler),
    (r"/company/del_data", CompanyDataHandler.CompanyDataHandler),

    (r"/upload/change_head_img", UploadFileHandler.ChangeHeadImgHandler),
    (r"/verifi_code", UserHandler.VerificationCodeHandler),

]